//
//  GroupCollectionFootView.m
//  高仿萝卜书摘
//
//  Created by 谢俊逸 on 2016/11/23.
//  Copyright © 2016年 谢俊逸. All rights reserved.
//

#import "GroupCollectionFootView.h"
#import "XJYHeader.h"
@implementation GroupCollectionFootView

- (id)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if(self){
        
        UILabel *titleLabel = [[UILabel alloc]init];
        titleLabel.frame = CGRectMake((ScreenW/4), 0, self.frame.size.width/2, self.frame.size.height/2);
        titleLabel.font = [UIFont systemFontOfSize:10];
        //自适应父视图的改变
        titleLabel.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleBottomMargin;
        //不要随便用center 特别是系统来布局的时候
        //NSLog(@"center %f %f",self.center.x,self.center.y);
        titleLabel.text = @"阅读爱好者扎堆在萝卜坑里";
        titleLabel.textAlignment = NSTextAlignmentCenter;
        titleLabel.textColor = [UIColor lightGrayColor];
        _titleLabel = titleLabel;
        self.backgroundColor = ColorWithRGBA(250, 250, 250, 1);
        [self addSubview:_titleLabel];
    }
    return self;
}



@end
